package com.ucenter.server.auth.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.system.comm.model.KvEntity;
import com.system.handle.model.ResponseFrame;
import com.ucenter.server.auth.pojo.ResInfo;

/**
 * res_info的Service
 * @author autoCode
 * @date 2018-12-01 09:50:44
 * @version V1.0.0
 */
@Component
public interface ResInfoService {
	
	/**
	 * 保存或修改
	 * @param resInfo
	 * @return
	 */
	public ResponseFrame saveOrUpdate(ResInfo resInfo);
	
	/**
	 * 根据resId获取对象
	 * @param resId
	 * @return
	 */
	public ResInfo get(String resId);

	/**
	 * 分页获取对象
	 * @param resInfo
	 * @return
	 */
	public ResponseFrame pageQuery(ResInfo resInfo);
	
	/**
	 * 根据resId删除对象
	 * @param resId
	 * @return
	 */
	public ResponseFrame delete(String resId);

	public List<KvEntity> findKvAll();

	public List<KvEntity> findKvByWebsiteId(String websiteId);

	public List<ResInfo> findByWebsiteId(String websiteId);
}